import request from '@/utils/request'
//获取页面
export function getInfo() {
  return request({
    url: 'community',
    method: 'get'
  })
}
// 获取表单信息
export const getHouseApi = (params) => {
  return request({
    url: '/house/building',
    method: 'get',
    params
  })
}
// 获取表单信息
export const getHouseInfoApi = (id) => {
  return request({
    url: '/house/building/' + id,
    method: 'get',
  })
}
// 修改表单信息
export const editHouseApi = (data) => {
  return request({
    url: '/house/building/' + data.id,
    method: 'put',
    data
  })
}
// 增加表单信息
export const addHouseApi = (data) => {
  return request({
    url: '/house/building',
    method: 'post',
    data
  })
}
// 删除表单信息
export const delHouseApi = (id) => {
  return request({
    url: '/house/building/' + id,
    method: 'delete',
  })
}

